<template>
    <div class="carts">
        <h1>购物车<span>({{cartBuyNum}})</span></h1>
         <router-view />
    </div>
</template>

<script>
import {mapState} from 'vuex'
export default {
    computed: {
        ...mapState({
            cartBuyNum: state => state.carts.cartBuyNum
        })
}
}
</script>

<style scoped lang="scss">

</style>
